home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmWeather
- Caption = "Weather Beacon"
- ClientHeight = 2265
- ClientLeft = 2160
- ClientTop = 1785
- ClientWidth = 2685
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2265
- ScaleWidth = 2685
- Begin VB.PictureBox picForecast
- Height = 375
- Left = 600
- ScaleHeight = 315
- ScaleWidth = 1275
- TabIndex = 5
- Top = 1680
- Width = 1335
- End
- Begin VB.CommandButton cmdInterpret
- Caption = "Interpret Beacon"
- Height = 495
- Left = 240
- TabIndex = 4
- Top = 960
- Width = 2055
- End
- Begin VB.TextBox txtMode
- Height = 285
- Left = 1680
- TabIndex = 3
- Top = 480
- Width = 615
- End
- Begin VB.TextBox txtColor
- Height = 285
- Left = 1680
- TabIndex = 1
- Top = 120
- Width = 615
- End
- Begin VB.Label lblMode
- Caption = "Mode (S or F)"
- Height = 255
- Left = 360
- TabIndex = 2
- Top = 480
- Width = 1215
- End
- Begin VB.Label lblColor
- Caption = "Color of the light"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 1455
- End
- Attribute VB_Name = "frmWeather"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdInterpret_Click()
- Dim color As String, mode As String
- 'Interpret a weather beacon
- picForecast.Cls
- color = txtColor.Text
- mode = txtMode.Text
- Select Case UCase(mode) & UCase(color)
- Case "SBLUE"
- picForecast.Print "CLEAR VIEW"
- Case "FBLUE"
- picForecast.Print "CLOUDS DUE"
- Case "SRED"
- picForecast.Print "RAIN AHEAD"
- Case "FRED"
- picForecast.Print "SNOW AHEAD"
- End Select
- End Sub
-